package cn.cs.service;


import java.util.List;
import java.util.Map;

/**
 * @author  yuexl
 */
public interface QgWxpayService {


    public Integer insertTrade(String orderNo, String tradeNo, String userId, String amount, String type) throws Exception;
    /**
     * 根据订单编号加载订单信息
     * @param orderNo
     * @return
     * @throws Exception
     */
//    public Order loadQgOrderByOrderNo(String orderNo) throws Exception;

    /**
     * 判断该订单是否已被处理过（被更新为已支付状态）
     * @param orderNo
     * @return
     * @throws Exception
     */
    public Map<String, Object> processed(String orderNo, String attach) throws Exception;

    /**
     * 支付成功修改订单状态
     * @param map
     * @param attach
     * @return
     * @throws Exception
     */
    public Integer updateOrderStatus(Map<String, Object> map, String attach) throws Exception;


    public Integer updateMoneyByType(String money, String type)throws Exception;

    public Map<String, Object> getFundsAccountByType(String type)throws Exception;

    public Integer saveFundsCarryOver(Map<String, Object> map)throws Exception;

    public List<Map<String, Object>> getFundsCarryOverByType(String type)throws Exception;
}
